/********************************************************************************
do-file to replicate tables in:
	Chacon, Mario and Jeff Jensen. 2019. "Democratization, De Facto Power, and Taxation: 
	Evidence from Military Occupation during Reconstruction" World Politics 

data file needed: Dataset_Fig_1

Variables used: 
nondem_majority_senate = Share of state upper houses in which Democrats comprised a minority of seats
nondem_majority_house = Share of state lower houses in which Democrats comprised a minority of seats
nondem_majority_governor = Share of state Governors who were not Democrats

nondem_senate_share = average share of upper house seats held by non-Democrats 
nondem_house_share = average share of lower house seats held by non-Democrats
nondem_gov_share = average share of votes for non-Democratic candidates
*/

clear all 
set more off

**Set Working Directory 
*cd "C:\****\ Replication Files (Chacon & Jensen, WP 2019)\Datasets\"

*** Figure 1 
use Dataset_Fig_1, clear 

graph twoway line nondem_majority_senate nondem_majority_house nondem_majority_governor year, ///
name(x, replace) title("% Legislative Majorities & Governorships", size(medium)) ///
lpattern(longdash shortdash solid) legend( order(1 "Senate" 2 "House" 3 "Governor") ///
ring(0) pos(1)) yscale(range(0 1)) ylabel(0(0.25)1) scheme(s1mono) xline(1877, lpattern(tight_dot)) 

graph twoway line nondem_senate_share nondem_house_share nondem_gov_share year, ///
name(y, replace) title("% Legislative Seats & Gubernatorial Vote", size(medium)) ///
lpattern(longdash shortdash solid) legend(off) yscale(range(0 1)) ylabel(0(0.25)1) scheme(s1mono) xline(1877, lpattern(tight_dot)) 

graph combine x y, name(xy, replace) scheme(s1mono) 




